<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
	<style type="text/css">
		
	</style>
</head>
<body>

<img src="C:\Users\Administrator\Desktop\毕设\img\满天星.jpg">
<script type="text/javascript" src="../jquery-3.2.1.js"></script>
<script type="text/javascript">
	$('img').attr('title','满天星')

	//设置多个属性
	$('img').attr({
		title:'花卉',
		width:'500px'
	})

	//获取
	console.log($('img').attr('title'))



</script>
</body>
</html>